/**
 * @filename:CourseStudentClassServiceImpl Course
 * @project constract  V1.0
 * Copyright(c) 2018  Co. Ltd. 
 * All right reserved. 
 */
package com.znufe.exam.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.znufe.exam.domain.CourseStudentClass;
import com.znufe.exam.repository.CourseStudentClassMapper;
import com.znufe.exam.service.CourseStudentClassService;

/**   
 *  
 * @Description:  自动翻页设置表——SERVICEIMPL
 * @Author:          
 * @CreateDate:   Course
 * @Version:      V1.0
 *    
 */
@Service
public class CourseStudentClassServiceImpl implements CourseStudentClassService {
	
	@Autowired
	public CourseStudentClassMapper courseStudentClassMapper;
	
	//查询对象
	@Override
	public CourseStudentClass selectByPrimaryKey(Integer id) {
		return courseStudentClassMapper.selectByPrimaryKey(id);
	}
	
	//删除对象
	@Override
	public int deleteByPrimaryKey(Integer id) {
		return courseStudentClassMapper.deleteByPrimaryKey(id);
	}
	
	//添加对象
	@Override
	public int insertSelective(CourseStudentClass courseStudentClass) {
		return courseStudentClassMapper.insertSelective(courseStudentClass);
	}
	
	//修改对象
	@Override
	public int updateByPrimaryKeySelective(CourseStudentClass courseStudentClass) {
		return courseStudentClassMapper.updateByPrimaryKeySelective(courseStudentClass);
	}
	
	//查询集合
	@Override
	public List<CourseStudentClass> queryCourseStudentClassList(CourseStudentClass courseStudentClass) {
		return courseStudentClassMapper.queryCourseStudentClassList(courseStudentClass);
	}

    @Override
    public CourseStudentClass selectByCourseClassId(Integer courseId, Integer classId) {
        return courseStudentClassMapper.selectByCourseClassId(courseId,classId);
    }
}